package com.hsh.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hsh.entity.DbUser;
import com.hsh.vo.param.LeaveRecordHisParam;
import com.hsh.vo.result.convert.DbUserDeptVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 用户表 Mapper 接口
 * </p>
 *
 * @author 黄思海
 * @since 2021-06-26
 */
public interface DbUserMapper extends BaseMapper<DbUser> {

    int checkUserDept(@Param("userId") String userId);

    List<DbUserDeptVO> getUserLeaderDeptInfoByCondition(@Param("userId") String userId, @Param("deptId") String deptId);


}
